import request from '@/utils/request';

/**
 * GET APP本次填报版本
 * @pathParam apiVersion true
 * @queryParam businessKey false
 * @queryParam projectId false
 */
export function appApprovedInfoUsingGET({ params, data }) {
  return request('valueApprovel/app/approvedInfo', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET App基本信息
 * @pathParam apiVersion true
 * @queryParam businessKey false
 * @queryParam projectId false
 */
export function appBasicInfoUsingGET({ params, data }) {
  return request('valueApprovel/app/basicInfo', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET APP差异详情
 * @pathParam apiVersion true
 * @queryParam businessKey false
 * @queryParam projectId false
 * @queryParam type true
 */
export function appAllgoodsValueDetailUsingGET({ params, data }) {
  return request('valueApprovel/app/newAllgoodsValueDetail', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET App全盘货值概览改版
 * @pathParam apiVersion true
 * @queryParam businessKey false
 * @queryParam projectId false
 */
export function appNewAllgoodsValueReviewUsingGET({ params, data }) {
  return request('valueApprovel/app/newAllgoodsValueReview', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 审批校验
 * @pathParam apiVersion true
 * @queryParam projectId true
 */
export function approvedCheckUsingGET({ params, data }) {
  return request('valueApprovel/approvedCheck', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 本次填报版本
 * @pathParam apiVersion true
 * @queryParam businessKey false
 * @queryParam projectId false
 */
export function approvedInfoUsingGET({ params, data }) {
  return request('valueApprovel/approvedInfo', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * PUT 货值审批-废弃流程
 * @pathParam apiVersion true
 * @queryParam instanceId true
 */
export function endFlowUsingPUT({ params, data }) {
  return request('valueApprovel/approvedOperation', {
    method: 'PUT',
    params,
    data,
  });
}

/**
 * DELETE 货值审批-删除流程
 * @pathParam apiVersion true
 * @queryParam instanceId true
 */
export function deleteFlowUsingDELETE({ params, data }) {
  return request('valueApprovel/approvedOperation', {
    method: 'DELETE',
    params,
    data,
  });
}

/**
 * GET 基本信息
 * @pathParam apiVersion true
 * @queryParam businessKey false
 * @queryParam projectId false
 */
export function basicInfoUsingGET({ params, data }) {
  return request('valueApprovel/basicInfo', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 货值审批记录
 * @pathParam apiVersion true
 * @queryParam businessType true
 * @queryParam current true
 * @queryParam pageSize true
 * @queryParam projectId true
 * @queryParam searchStr false
 */
export function goodsApprovedRecordViewUsingGET({ params, data }) {
  return request('valueApprovel/goodsApprovedRecoreViewPage', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 查看审批
 * @pathParam apiVersion true
 * @queryParam versionId true
 */
export function goodsApprovedViewUsingGET({ params, data }) {
  return request('valueApprovel/goodsApprovedView', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 差异详情
 * @pathParam apiVersion true
 * @queryParam businessKey false
 * @queryParam projectId false
 * @queryParam type true
 */
export function newAllgoodsValueDetailUsingGET({ params, data }) {
  return request('valueApprovel/newAllgoodsValueDetail', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 全盘货值差异概览
 * @pathParam apiVersion true
 * @queryParam businessKey false
 * @queryParam projectId false
 */
export function newAllgoodsValueReviewUsingGET({ params, data }) {
  return request('valueApprovel/newAllgoodsValueReview', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * POST 提交到OA审批
 * @pathParam apiVersion true
 * @queryParam businessKey false
 * @queryParam businessType true
 * @queryParam description true
 * @queryParam files false
 * @queryParam projectId false
 */
export function submitToOAUsingPOST({ params, data }) {
  return request('valueApprovel/submitToOA', {
    method: 'POST',
    params,
    data,
  });
}

/**
 * GET 定调价预警信息
 * @pathParam apiVersion true
 * @queryParam businessKey false
 * @queryParam projectId true
 */
export function valueApprovelWarnInfoGET({ params, data }) {
  return request('valueApprovel/warnInfo', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * PUT 预警督办-保存督办
 * @pathParam apiVersion true
 * @queryParam businessKey false
 * @queryParam projectId true
 */
export function valueApproveSaveSupervisePUT({ params, data }) {
  return request('valueApprovel/saveSupervise', {
    method: 'PUT',
    params,
    data,
  });
}

/**
 * PUT 预警督办-取消督办
 * @pathParam apiVersion true
 * @queryParam businessKey false
 * @queryParam projectId true
 */
export function valueApproveCancelSupervisePUT({ params, data }) {
  return request('valueApprovel/cancelSupervise', {
    method: 'PUT',
    params,
    data,
  });
}
